package com.yellow.paymentservice.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.IdType;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import java.time.LocalDate;

@Data
@NoArgsConstructor
@AllArgsConstructor
@TableName("payment_methods")
public class PaymentMethod {

    @TableId(value = "method_id", type = IdType.AUTO)
    private Integer methodId;

    @TableField("customer_id")
    private Integer customerId;

    @TableField("method_type")
    private String methodType;

    @TableField("provider_name")
    private String providerName;

    @TableField("account_number")
    private String accountNumber;

    @TableField("expiry_date")
    private LocalDate expiryDate;

    @TableField("is_default")
    private Boolean isDefault;
}
